return {
	capabilities = {
		textDocument = {
			completion = {
				editsNearCursor = true,
			},
		},
		offsetEncoding = { "utf-8", "utf-16" },
	},
	cmd = {
		"clangd",
		"--background-index", -- 后台索引提升性能
		"--clang-tidy", -- 启用 clang-tidy 检查
		"--header-insertion=never", -- 禁止自动插入头文件
		"--completion-style=detailed", -- 详细补全提示
	},
	filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto" },
	root_markers = {
		".clangd",
		".clang-tidy",
		".clang-format",
		"compile_commands.json",
		"compile_flags.txt",
		"configure.ac", -- AutoTools
	},
	single_file_support = true,
}
